Optimal. Leaf size=267 \[ -\frac{(e x)^{m+1} (b c-a d) \, _2F_1\left (1,\frac{m+1}{n};\frac{m+n+1}{n};-\frac{d x^n}{c}\right ) (a d (B c (m+1)-A d (m-n+1))+b c (A d (m+n+1)-B c (m+2 n+1)))}{c^2 d^3 e (m+1) n}-\frac{b (e x)^{m+1} (2 a d (A d (m+1)-B c (m+n+1))-b c (A d (m+n+1)-B c (m+2 n+1)))}{c d^3 e (m+1) n}-\frac{(e x)^{m+1} \left (a+b x^n\right )^2 (B c-A d)}{c d e n \left (c+d x^n\right )}-\frac{b^2 x^{n+1} (e x)^m (A d (m+n+1)-B c (m+2 n+1))}{c d^2 n (m+n+1)} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 1.6687, antiderivative size = 267, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 31, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.161 \[ -\frac{(e x)^{m+1} (b c-a d) \, _2F_1\left (1,\frac{m+1}{n};\frac{m+n+1}{n};-\frac{d x^n}{c}\right ) (a d (B c (m+1)-A d (m-n+1))+b c (A d (m+n+1)-B c (m+2 n+1)))}{c^2 d^3 e (m+1) n}-\frac{b (e x)^{m+1} (2 a d (A d (m+1)-B c (m+n+1))-b c (A d (m+n+1)-B c (m+2 n+1)))}{c d^3 e (m+1) n}-\frac{(e x)^{m+1} \left (a+b x^n\right )^2 (B c-A d)}{c d e n \left (c+d x^n\right )}-\frac{b^2 x^{n+1} (e x)^m (A d (m+n+1)-B c (m+2 n+1))}{c d^2 n (m+n+1)} \]
Antiderivative was successfully verified.
[In] Int[((e*x)^m*(a + b*x^n)^2*(A + B*x^n))/(c + d*x^n)^2,x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((e*x)**m*(a+b*x**n)**2*(A+B*x**n)/(c+d*x**n)**2,x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 1.75341, size = 249, normalized size = 0.93 \[ x (e x)^m \left (-\frac{a^2 B c-a^2 A d}{c^2 d n+c d^2 n x^n}+\frac{(b c-a d) \, _2F_1\left (1,\frac{m+1}{n};\frac{m+n+1}{n};-\frac{d x^n}{c}\right ) (a d (A d (m-n+1)-B c (m+1))+b c (B c (m+2 n+1)-A d (m+n+1)))}{c^2 d^3 (m+1) n}+\frac{2 a b \left (-A d (m+1)+B c (m+n+1)+B d n x^n\right )}{d^2 (m+1) n \left (c+d x^n\right )}+\frac{b^2 \left (A d \left (\frac{c}{c n+d n x^n}+\frac{1}{m+1}\right )+B \left (-\frac{c^2}{c n+d n x^n}-\frac{2 c}{m+1}+\frac{d x^n}{m+n+1}\right )\right )}{d^3}\right ) \]
Antiderivative was successfully verified.
[In] Integrate[((e*x)^m*(a + b*x^n)^2*(A + B*x^n))/(c + d*x^n)^2,x]
[Out]
_______________________________________________________________________________________
Maple [F] time = 0.086, size = 0, normalized size = 0. \[ \int{\frac{ \left ( ex \right ) ^{m} \left ( a+b{x}^{n} \right ) ^{2} \left ( A+B{x}^{n} \right ) }{ \left ( c+d{x}^{n} \right ) ^{2}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((e*x)^m*(a+b*x^n)^2*(A+B*x^n)/(c+d*x^n)^2,x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ -{\left ({\left (b^{2} c^{2} d e^{m}{\left (m + n + 1\right )} + a^{2} d^{3} e^{m}{\left (m - n + 1\right )} - 2 \, a b c d^{2} e^{m}{\left (m + 1\right )}\right )} A -{\left (b^{2} c^{3} e^{m}{\left (m + 2 \, n + 1\right )} - 2 \, a b c^{2} d e^{m}{\left (m + n + 1\right )} + a^{2} c d^{2} e^{m}{\left (m + 1\right )}\right )} B\right )} \int \frac{x^{m}}{c d^{4} n x^{n} + c^{2} d^{3} n}\,{d x} + \frac{{\left (m n + n\right )} B b^{2} c d^{2} e^{m} x e^{\left (m \log \left (x\right ) + 2 \, n \log \left (x\right )\right )} +{\left ({\left ({\left (m^{2} + 2 \, m{\left (n + 1\right )} + n^{2} + 2 \, n + 1\right )} b^{2} c^{2} d e^{m} - 2 \,{\left (m^{2} + m{\left (n + 2\right )} + n + 1\right )} a b c d^{2} e^{m} +{\left (m^{2} + m{\left (n + 2\right )} + n + 1\right )} a^{2} d^{3} e^{m}\right )} A -{\left ({\left (m^{2} + m{\left (3 \, n + 2\right )} + 2 \, n^{2} + 3 \, n + 1\right )} b^{2} c^{3} e^{m} - 2 \,{\left (m^{2} + 2 \, m{\left (n + 1\right )} + n^{2} + 2 \, n + 1\right )} a b c^{2} d e^{m} +{\left (m^{2} + m{\left (n + 2\right )} + n + 1\right )} a^{2} c d^{2} e^{m}\right )} B\right )} x x^{m} +{\left ({\left (m n + n^{2} + n\right )} A b^{2} c d^{2} e^{m} -{\left ({\left (m n + 2 \, n^{2} + n\right )} b^{2} c^{2} d e^{m} - 2 \,{\left (m n + n^{2} + n\right )} a b c d^{2} e^{m}\right )} B\right )} x e^{\left (m \log \left (x\right ) + n \log \left (x\right )\right )}}{{\left (m^{2} n +{\left (n^{2} + 2 \, n\right )} m + n^{2} + n\right )} c d^{4} x^{n} +{\left (m^{2} n +{\left (n^{2} + 2 \, n\right )} m + n^{2} + n\right )} c^{2} d^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x^n + A)*(b*x^n + a)^2*(e*x)^m/(d*x^n + c)^2,x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \[{\rm integral}\left (\frac{{\left (B b^{2} x^{3 \, n} + A a^{2} +{\left (2 \, B a b + A b^{2}\right )} x^{2 \, n} +{\left (B a^{2} + 2 \, A a b\right )} x^{n}\right )} \left (e x\right )^{m}}{d^{2} x^{2 \, n} + 2 \, c d x^{n} + c^{2}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x^n + A)*(b*x^n + a)^2*(e*x)^m/(d*x^n + c)^2,x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((e*x)**m*(a+b*x**n)**2*(A+B*x**n)/(c+d*x**n)**2,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{{\left (B x^{n} + A\right )}{\left (b x^{n} + a\right )}^{2} \left (e x\right )^{m}}{{\left (d x^{n} + c\right )}^{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x^n + A)*(b*x^n + a)^2*(e*x)^m/(d*x^n + c)^2,x, algorithm="giac")
[Out]